#include "robotconfigi.h"
#include "tmglobaldef.h"


RobotConfigI::RobotConfigI()
{
    TmConfig_Init();
}

void RobotConfigI::SetSystemVolume(Ice::Int nVal, const Ice::Current &)
{
    TmConfig_SetSysVolume(nVal);
}

Ice::Int RobotConfigI::GetSystemVolume(const Ice::Current &)
{
    return TmConfig_GetSysVolume();
}

void RobotConfigI::SetSystemCmd(const std::string &strCmd, const Ice::Current &)
{
    QString strCmdIn = QString::fromUtf8(strCmd.c_str());
    QProcess::startDetached(QString("cmd /c %1").arg(strCmdIn));
}

